import {get, post} from "@/axios/http.js";
import {BASEURL} from '@/api/baseUrl.js';

//新增课程
export const addCourse = (param) => {
    return post(BASEURL + "/course/courseSave", param);
}

//修改课程
export const updateCourse = (param) => {
    return post(BASEURL + "/course/courseUpdate", param);
}
//删除课程
export const deleteCourse = (param) => {
    return post(BASEURL + "/course/courseDel", param);
}

//查询课程
export const pcCourseList = (param) => {
    return post(BASEURL + "/course/pc/course/list", param);
}

//查询课程课时
export const getCtListByCourceId = (param) => {
    return post(BASEURL + "/couturetime/ctList/by/courceId", param);
}

//更新课程课时及课时资源
export const update = (param) => {
    return post(BASEURL + "/couturetime/update", param);
}

